package org.power.core.common;

import java.util.HashMap;
import java.util.Map;

public class DisplayResult {
    public static Map success(Object data) {
        HashMap<String, Object> responseData = new HashMap<>();
        responseData.put("data", data);

        HashMap<String, Object> responseInfo = new HashMap<>();
        responseInfo.put("code", 20000);
        responseInfo.put("msg", "获取数据成功");
        responseInfo.put("data", responseData);
        return responseInfo;
    }
}
